<% if(employeeOfficeList.~size > 0){ %>
<li class="dropdown mr5">
    <a href="javascript:" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown">
        <% var showName = @ObjectUtils.toStringIgnoreNull(session.showName, ''); %>
        <span class="hidden-xs" style="padding-bottom:1px; border-bottom:1px solid;">${showName}</span>
    </a>
    <!--如果有其他机构，则下拉展示-->
    <% if(employeeOfficeList.~size > 1){ %>
    <ul class="dropdown-menu">
        <% var officeCode = @ObjectUtils.toStringIgnoreNull(session.officeCode, ''); %>
        <li class="dropdown-header mb5">${text('选择部门')}：<% if(isNotBlank(officeCode)){ %>
            <i class="fa fa-rotate-left pointer" title="${text('恢复默认')}" onclick="location='${ctx}/switchOffice'"></i><% } %></li>
        <% for(var office in employeeOfficeList){ %>
        <li>
            <a href="${ctx}/switchOffice/${office.officeCode}/${office.officeName}/${office.showName}">
                <i class="fa fa-${officeCode == office.officeCode
                    ? 'check-' : ''}circle-o"></i> ${office.showName}
            </a>
        </li>
        <% } %>
        <li class="mt10"></li>
    </ul>
    <% } %>
</li>
<% } %>